using System;
using System.Collections.Generic;
using System.Text;
using HappySprite;

namespace HappyInvaders
{
    class ZapEntity : Entity
    {
        public ZapEntity()
        {
        }

        internal override void OnAdd()
        {
            Owner.ZapCount++;

            // Schedule lifetime
            Global.EventScheduler.Schedule(Constants.ZapLifetime, Remove);
        }

        internal override void OnRemove()
        {
            Owner.ZapCount--;
        }
    }
}
